POV-Ray : Newsgroups : povray.unofficial.patches : Re: Pov-Ray With Subdivision available : Re: Pov-Ray With Subdivision available Server Time
30 Jun 2024 19:58:24 EDT (-0400)
  Re: Pov-Ray With Subdivision available  
From: John VanSickle
Date: 13 May 2004 20:10:19
Message: <40A40E63.5DDEA331@hotmail.com>
Christoph Hormann wrote:
> 
> Xiaobin Wu wrote:
> > First of all, thanks to all that responded or tested my patch.
> >
> > I have posted the modified source. There are five files modified:
> > tokenize.cpp, mesh.h, mesh.cpp, parse.h, parse.cpp
> > ( I want to thank Andrew for testing it under Linux. )
> > Also I wish the code is only used in Pov-Ray community.
> 
> Thanks for the code, a first glance at the code revealed the following
> things:
> 
> - you seem to discard any normal vectors specified for the mesh - this
> might often not be what the user wants and more important using the
> normal vectors could save you quite some computations (i.e. determining
> the neighbouring triangles).

And determining if the edge between two triangles is sharp or smooth,
which is very important for subdivision surfaces.

> - i can't find a reason why it should only work for mesh2 and not mesh.

Mesh2 allows you to explicitly specify that two triangles share their
corner vertices (instead of having different vertices that happen to be
identical).

Regards,
John


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.